<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 引入字体 */
      @font-face {
        /* 字体的名字 */
        font-family: myFirstFont; 
        /* 字体的路径 */
        /*  字体文件都已*/
        src: url(https://fonts.googleapis.cnpmjs.org);
      }
      #box{
        font-family: myFirstFont;
        font-size: 30px;
      }
  </style>
</head>
<body>
    <div id="box"> 
      你好
    </div>
</body>
</html>